package yns.springboot.guide.demo.configure.data.mongodb;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MongoClientWithSettingsConfigure {

	@Value("${mongoClientWithSettings.userName}")
	private String userName;
	
	@Value("${mongoClientWithSettings.password}")
	private String password;
	
	@Value("${mongoClientWithSettings.database}")
	private String database;
	
	@Value("${mongoClientWithSettings.hosts}")
	private String hosts;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDatabase() {
		return database;
	}

	public void setDatabase(String database) {
		this.database = database;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getHosts() {
		return hosts;
	}

	public void setHosts(String hosts) {
		this.hosts = hosts;
	}

	@Override
	public String toString() {
		return "MongoClientWithSettingsConfigure [userName=" + userName + ", database=" + database + ", password="
				+ password + ", hosts=" + hosts + "]";
	}

}
